{extend name="Public/public"}
{block name="title"}修改栏目{/block}
{block name="main"}

  <div class="col-sm-5"> 
   <div class="widget-box"> 
    <div class="widget-header"> 
     <h4>修改栏目</h4> 
    </div> 
    <div class="widget-body"> 
     <div class="widget-main no-padding"> 
      <form action="/column/update" method="post">
       <!-- <legend>Form</legend> --> 
       <fieldset> 
        <label>类名</label> 
        <input type="text" name="name"value="{$list.name}"> 
         <input type="hidden" name="id"value="{$list.id}"> 
        </fieldset> 
        {if condition="empty($result)"}
        <label style="margin-left:15px">属于类别：</label>
        <select name="pid" id="">
        {foreach name="data" item="row"}
          {if condition="$row.id==$list.pid"}
             <option value="{$row.id}" selected>{$row.name}</option>
             {else/}
             <option value="{$row.id}" >{$row.name}</option>

           {/if}
         
        {/foreach}
        </select>
       {else/}
        <label style="margin-left:15px">属于类别：</label>
        <select name="pid" id=""  disabled="disabled">
        {foreach name="data" item="row"}
         {if condition="$row.id==$list.pid"}
             <option value="{$row.id}" selected>{$row.name}</option>
             {else/}
             <option value="{$row.id}" >{$row.name}</option>

           {/if}
        {/foreach}
        </select>
        <span style="color:red"><请先修改该栏目的子栏目></span>
       {/if}
        <fieldset> 
        <label>文件夹</label> 
        <input type="text" name="m"value="{$list.m}"> 
        </fieldset>
         <fieldset> 
        <label>控制器</label> 
        <input type="text" name="c"value="{$list.c}"> 
        </fieldset>
         <fieldset> 
        <label>方法&nbsp;&nbsp;</label> 
        <input type="text" name="a"value="{$list.a}"> 
        </fieldset>
       <div class="form-actions center"> 
        <input type="submit" class="btn btn-sm btn-success">
       </div> 
      </form> 
     </div> 
    </div> 
   </div> 
  </div>
{/block}